package com.hqx.oop.root;

public class Base {
    public static int s;
    private int a;
    static {
        System.out.println("基类静态代码块,s:"+s);
    }
    {
        System.out.println("基类实例代码块,a:"+a);
    }

    public Base() {
        System.out.println("基类构造方法,a:"+a);
        a = 2;
    }

    protected void step() {
        System.out.println("base s:"+s+",a:"+a);
    }

    public void action() {
        System.out.println("start");
        step();
        System.out.println("end");
    }

}
